export class Shop {
  id: number
  name: string
  price: number
}

export namespace Shop {
  export class Get {
    static readonly type = '获取shop'
  }

  export class Add {
    static readonly type = '添加shop'

    constructor(public payload: Shop) {
    }
  }

  export class Remove {
    static readonly type = '移除shop'

    constructor(public id: number) {
    }
  }

  export class Update {
    static readonly type = '修改shop'

    constructor(public payload: Shop) {
    }
  }

}
